<%@ page import="allocator.Semestre" %>

<r:require modules="maskedImput" />
<jq:jquery>
	$('#numero').mask('?9999.9');
</jq:jquery>

<div class="fieldcontain ${hasErrors(bean: semestreInstance, field: 'numero', 'error')} required">
	<label for="numero">
		<g:message code="semestre.numero.label" default="Numero" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="numero" pattern="${semestreInstance.constraints.numero.matches}" required="" value="${semestreInstance?.numero}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: semestreInstance, field: 'curso', 'error')} required">
	<label for="curso">
		<g:message code="semestre.curso.label" default="Curso" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="curso" name="curso.id" from="${allocator.Curso.list()}" optionKey="id" required="" value="${semestreInstance?.curso?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: semestreInstance, field: 'horario', 'error')} required">
	<label for="horario">
		<g:message code="semestre.horario.label" default="Horario" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horario" name="horario.id" from="${allocator.Horario.list()}" optionKey="id" required="" value="${semestreInstance?.horario?.id}" class="many-to-one"/>
</div>

